import request from '@/utils/request'

// api地址
const api = {
  analysis: 'dify/analysis',
  recordStatus: 'dify/recordStatus',
  GetRecord: 'dify/record',
}

// 分析图片
export const analysis = (data, option) => {
  return request.post(api.analysis, data, option)
}

// 获取图片分析状态
export const getRecordStatus = (param) => {
  return request.get(api.recordStatus, param, { load: false })
}

// 获取图片分析结果
export const getRecord = (param) => {
  return request.get(api.GetRecord, param)
}


